package com.ddwanglife.jvm;

/**
 * 禁用压缩指针、限制java堆大小
 * -Xmx10m -XX:+UseSerialGC -XX:-UseCompressedOops
 */
public class JHSDB_TestDemo {
    static class Test{
        static ObjectHolder staticObj = new ObjectHolder();
        ObjectHolder instanceObj = new ObjectHolder();
        void foo(){
            ObjectHolder localObj = new ObjectHolder();
            System.out.println("done");//这里加上一个断点
        }
    }
    private static class ObjectHolder{}
    public static void main(String[] args) {
        Test test = new JHSDB_TestDemo.Test();
        test.foo();
    }
}
